package com.focusai.efairy.utils;

import android.content.Context;

import com.focusai.efairy.EFApplication;
import com.focusai.efairy.utils.log.Log;

import cn.jpush.android.api.JPushInterface;

/**
 * Created by luo_guangwen on 2017/11/4.
 */

public class JiGuangPushUtil {
    public static Context context = EFApplication.getContext();

    public static void initJiGuangPush() {
        JPushInterface.setDebugMode(Log.isDebug());
        JPushInterface.init(context);
    }

    public static void loginOut() {
        JPushInterface.stopPush(context);
    }

    public static void resumePush() {
        JPushInterface.resumePush(context);
    }

    public static void setAlias(int sequence, String alias) {
        JPushInterface.setAlias(context, sequence, alias);
    }
}
